## zixue@taobao.com
## 2008-6-16

from google.appengine.api import  urlfetch
from google.appengine.ext import db

from HttpClient import HttpRsp

class ApiConfig(db.Model):
	appkey = db.StringProperty()
	secret = db.StringProperty()
	url = db.StringProperty()
	v = db.StringProperty()
	created = db.DateTimeProperty(auto_now_add=True)

class AEHttp():
	def get(self, url):
		result = urlfetch.fetch(url)
		rsp = HttpRsp(result.status_code, result.headers, result.content)
		return rsp

def main():
	print 'aa'
	
if __name__ == "__main__":
	main()